var today = new Date();
var date = today.getDate()
var hour = today.getHours();
var day = today.getDay();
var greeting;

if(hour >= 18){
    greeting = "Good evening , Welcome to JPetStore 6";
}else if(hour >= 12){
    greeting = "Good afternoon , Welcome to JPetStore 6";
}else if(hour >= 0){

    greeting = "Good morning , Welcome to JPetStore 6";
}

document.write('<h1>' + greeting + '</h1>');
